﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true"
    CodeFile="LeaderVerifyPageList.aspx.cs" Inherits="Gift_LeaderVerifyPageList" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript">
        function getID(id) {
            document.getElementById('<%=tbSelectedID.ClientID %>').value = id;
        }


        function searchClick() {
            //alert(window.event.keyCode);
            if (window.event.keyCode == 13) {
                document.getElementById("<%=btnSearch.ClientID %>").click(); return false;
            }
            return true;
        }

        function clearText(control, text) {
            if (control.value == text)
                control.innerText = "";
        }
        function insertText(control, text) {
            if (control.value == "")
                control.innerText = text;
        }

    
    </script>

    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="Server">
    申请审批列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" />
        <asp:TextBox ID="tbSelectedID" runat="server"></asp:TextBox>
    </div>
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td class="ToolMenu" width="80">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="ltbnAllPass" OnClick="AllPass_Click" OnClientClick="return confirm('是否选中批准')">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/Icon/Action/enable.gif")%>" alt="选中批准" /></span><span>选中批准</span></asp:LinkButton>
                </div>
            </td>
            <td>
                <table cellspacing="0" cellpadding="0" border="0" class="TableSearch" width="100%">
                    <tr>
                        <td width="100%">
                            <asp:TextBox ID="tbSearch" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td width="10">
                            <asp:LinkButton ID="btnSearch" runat="server" OnClick="btnSearch_Click"><img alt="<%=SearchDefaultText %>" src="../Images/Icon/Icon-Search.png" align="absmiddle" style="cursor: pointer;" /></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="Server">
    <table cellspacing="3" cellpadding="0" border="0" width="100%">
        <tr>
            <td width="60">
                申领原因
            </td>
            <td>
                <asp:TextBox ID="tbTitle" runat="server" class="Textbox01"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="60">
                查询时间
            </td>
            <td>
                <asp:DropDownList ID="ddlTime" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="60">
                开始时间
            </td>
            <td>
                <asp:TextBox ID="tbStartTime" runat="server" onfocus="WdatePicker();" class="Textbox01"></asp:TextBox>
            </td>
            <td width="60">
                结束时间
            </td>
            <td>
                <asp:TextBox ID="tbEndTime" runat="server" class="Textbox01" onfocus="WdatePicker();"></asp:TextBox>
            </td>
        </tr>
        <tr style="display:none;">
            <td width="60">
                申请状态
            </td>
            <td colspan="3">
                <asp:CheckBox ID="cbSubmit" runat="server" Text="待审核" Checked="true" />
                <asp:CheckBox ID="cbPass" runat="server" Text="审核通过" />
                <asp:CheckBox ID="cbNotPass" runat="server" Text="审核未通过" />
                <asp:CheckBox ID="cbArrival" runat="server" Text="已到货" />
                <asp:CheckBox ID="cbConfirm" runat="server" Text="已领取" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="查询" OnClientClick=""
                    OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <td width=22></td>
        <wsc:ListHeader ID="lhStatus" runat="server" Title="状态" Width="60" OrderColumn="Status"
            Align="center" />      
        <wsc:ListHeader ID="lhPerson" runat="server" Title="申领人" Width="60" OrderColumn="ApplierDsName"       Align="center" />
        <wsc:ListHeader ID="lhDepart" runat="server" Title="申领科室" Width="80" OrderColumn="ApplierDepartment"
            Align="center" />
             <wsc:ListHeader ID="lhSupplyTime" runat="server" Title="申领时间" Width="90" OrderColumn="ApplyTime"
            Align="center" />
        <wsc:ListHeader ID="lhTitle" runat="server" Title="申领原因" OrderColumn="ApplyTitle" Align="center" />
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListContentPlaceHolder" runat="Server">
    <table id="Table1" width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptOrder" runat="server" OnItemDataBound="rptProduct_ItemDataBound"
            OnItemCommand="rptProduct_ItemCommand">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="getID(this.id);ClickChangeClass(this);OpenDetail('ApplyView.aspx?ApplyID=<%# DataBinder.Eval(Container.DataItem, "ApplyID")%>&UserType=2&Manage=false&Nocache=' + Math.random());">
                 <%--   <td align="left" title="<%# DataBinder.Eval(Container.DataItem, "ApplyTitle")%>">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplyTitle"),10)%>
                    </td>
                    <td width="80" align="center" title="<%# DataBinder.Eval(Container.DataItem, "ApplierDepartment")%>">
                        <%#WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplierDepartment"),6)%>
                    </td>
                    <td width="70" align="center" title="<%# DataBinder.Eval(Container.DataItem, "ApplierDsName")%>">
                        <%#WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplierDsName"), 6)%>
                    </td>
                    <td width="90" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "ApplyTime", "{0:yyyy-MM-dd}")%>
                    </td>--%> 
                       <td width=22>
                        <asp:CheckBox ID="cbSelect" runat="server" />
                    </td>
                    
                       <td width="60" align="center" title="<%# DataBinder.Eval(Container.DataItem, "Status") %>">
                       <%# DataBinder.Eval(Container.DataItem, "Status") %>
                       
                   <%-- <img src="../images/<%# DataBinder.Eval(Container.DataItem, "Status") %>.png" title="<%# DataBinder.Eval(Container.DataItem, "Status") %>" />
                   --%> </td>
                      <td width="60" align="center" title="<%# DataBinder.Eval(Container.DataItem, "ApplierDsName")%>">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplierDsName"),6)%>
                    </td>
                    <td width="80" align="center" title="<%# DataBinder.Eval(Container.DataItem, "ApplierDepartment")%>"
                        style="text-align: center;">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplierDepartment"),6)%>
                    </td>
                      <td width="90" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "ApplyTime","{0:yyyy-MM-dd}")%>
                    </td>
                    <td align="left" title="<%# DataBinder.Eval(Container.DataItem, "ApplyTitle")%>">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "ApplyTitle"),10)%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
